package com.pap.msg.feedback.service.impl;

import com.pap.msg.feedback.entity.Feedback;
import com.pap.msg.feedback.mapper.FeedbackMapper;
import com.pap.msg.feedback.service.IFeedbackService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Transactional
@Service("feedbackService")
public class FeedbackServiceImpl implements IFeedbackService {

    @Resource(name = "feedbackMapper")
    private FeedbackMapper mapper;

    @Override
    public int deleteByPrimaryKey(String id) {
       return mapper.deleteByPrimaryKey(id);
    }

    @Override
    public int selectCountByMap(Map<Object, Object> map) {
      return mapper.selectCountByMap(map);
    }

    @Override
    public List<Feedback> selectListByMap(Map<Object, Object> map) {
        return mapper.selectListByMap(map);
    }

    @Override
    public int insert(Feedback record) {
       return mapper.insert(record);
    }

    @Override
    public int insertSelective(Feedback record) {
       return mapper.insertSelective(record);
    }

    @Override
    public Feedback selectByPrimaryKey(String id) {
       return mapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Feedback record) {
       return mapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Feedback record) {
      return mapper.updateByPrimaryKey(record);
    }
}